import home from './pages/home'
import about from './pages/about'
import article from './pages/article'
import archive from './pages/archive'
import topics from './pages/topics'
import articles from './pages/articles' 

const routes = [{
        path: '/',
        component: home
    },
    {
        path: '/home',
        name: 'home',
        component: home
    },
    {
        path: '/topics',
        name: 'topics',
        component: topics
    }, {
        path: '/topics/:topicId',
        name: 'articles',
        component: articles
    },
    {
        path: '/about',
        name: 'about',
        component: about
    },
    {
        path: '/archive',
        name: 'archive',
        component: archive
    },
    {
        path: '/tag/:name',
        name: 'tag',
        component: archive
    },
    {
        path: '/article',
        name: 'article',
        component: article
    },
    {
        path: '*',
        redirect: '/'
    }

]
export default routes;